<%@page language="java"%>
<%@page contentType="text/html; charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/main.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/menu.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/error.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/font-awesome.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/calendarDate.css">
		<script src="${pageContext.request.contextPath}/static/calendarDate.js"></script>
		<title>出错了-_-</title>
	</head>
	<body>
		<div id="container">
			<div id="menu_wrap">
				<ul id="menu_left">
					<li><a href="${pageContext.request.contextPath}/latest.html">最新日报</a></li>
					<li><a href="${pageContext.request.contextPath}/hot.html">热门日报</a></li>
					<li><a href="http://git.oschina.net/tmaize/zh_daily/" target="_blank">关于</a></li>
				</ul>
				<ul id="menu_right">
					<li>
						<form action="${pageContext.request.contextPath}/before.html" method="post" id="dateform">
							<div class="date123"></div>
							<input style="display: none;" type="submit" id="sub" value="submit" />
						</form>
					</li>
					<li><a onclick="submit()">时空穿梭</a></li>
				<ul>
			</div>
			<div id="errorpage">
				<div id="div1">
				<img alt="error" src="${pageContext.request.contextPath}/static/baoman.jpg">
				</div>
				<div  id="div2">
					<ul>
						<li>很幸运，你看到了这个错误界面o(≧v≦)o~~</li>
						<li>可能是你请求时数据有错误，请检查你输入的数据</li>
						<li>或者是系统的一个bug,再或者是服务器异常</li>
						<li>总之，请刷新页面重新访问..........</li>
					</ul>
				</div>
				<div id="clearfix" ></div>
			</div>
		</div>
		<script type="text/javascript">
        	function submit() {
            	document.getElementById ('sub').click ();
        	}
    	</script>
		<script type="text/javascript">
        	'use strict'
        	var main = document.querySelector('.date123')
        	var calendar = new CalendarDate(main)
        	// 启动日历插件
        	calendar.start()
    	</script>
	</body>
</html>